<?php

namespace app\admin;

use think\facade\Route;


#============================
#Login.php登录
#============================
Route::get('login', 'Login/login');
Route::get('verify', 'Login/verify');
Route::post('dologin', 'Login/dologin');
Route::get('loginout', 'Login/loginout');

#============================
#Index.php首页
#============================
Route::get('/', 'Index/index');
Route::get('index', 'Index/index');
Route::get('welcome', 'Index/welcome');
Route::get('ads', 'Index/ads');
Route::rule('ads_add', 'Index/ads_add', 'GET|POST');

#============================
#Upload.php上传文件
#============================
Route::post('picture', 'Upload/picture');

Route::post('upload_yinyue', 'Upload/upload_yinyue');



#============================
#User.php用户管理
#============================
Route::rule('user', 'User/index', 'GET|POST');
Route::rule('chongzhi', 'User/chongzhi', 'GET|POST');
Route::rule('userdel', 'User/userdel', 'GET|POST');
Route::rule('user_profit_loss', 'User/user_profit_loss', 'GET|POST');
Route::rule('user_shangdai', 'User/user_shangdai', 'GET|POST');
Route::rule('vip', 'User/vip', 'GET|POST');
Route::rule('vip_edit', 'User/vip_edit', 'GET|POST');
Route::rule('give_goodslist_info', 'User/give_goodslist_info', 'GET|POST');
Route::rule('give_goodslist', 'User/give_goodslist', 'GET|POST');
Route::rule('user_give_add','User/give_add','GET|POST');  //赠送优惠券
Route::rule('detailed_flow', 'User/detailed_flow', 'GET|POST');
Route::rule('user_team', 'User/user_team', 'GET|POST');
Route::rule('ip_list', 'User/ip_list', 'GET|POST');
Route::rule('ipzh', 'User/ipzh', 'GET|POST');
Route::rule('order_list', 'User/order_list', 'GET|POST');  //用户仓库
Route::rule('pata_list', 'User/pata_list', 'GET|POST');  //用户仓库
Route::rule('give_order_list', 'User/give_order_list', 'GET|POST');  //  仓库操作
Route::rule('add_order_list', 'User/add_order_list', 'GET|POST');  // 
Route::rule('user_goodslist_add', 'User/goodslist_add', 'GET|POST');  // 
Route::rule('user_info_daochu', 'User/user_info_daochu', 'GET|POST');  //  用户信息导出
Route::rule('user_profit_loss_daochu', 'User/user_profit_loss_daochu', 'GET|POST'); //盈亏导出





#============================
#Finance.php财务管理
#============================
Route::rule('record', 'Finance/record', 'GET|POST');
Route::rule('money_list', 'Finance/money_list', 'GET|POST');
Route::rule('integral_list', 'Finance/integral_list', 'GET|POST');
Route::rule('score_list', 'Finance/score_list', 'GET|POST'); // 积分明细
Route::rule('ouqi_list', 'Finance/ouqi_list', 'GET|POST'); // 欧气导出
Route::rule('ouqi_list_daochu', 'Finance/ouqi_list_daochu', 'GET|POST'); // 欧气明细导出
Route::rule('score_list_daochu', 'Finance/score_list_daochu', 'GET|POST'); // 积分明细导出

Route::rule('record_daochu', 'Finance/record_daochu', 'GET|POST'); //流水导出
Route::rule('money_list_daochu', 'Finance/money_list_daochu', 'GET|POST'); //流水导出

Route::rule('recharge_list', 'Finance/recharge_list', 'GET|POST'); // 充值记录
Route::rule('recharge_list_daochu', 'Finance/recharge_list_daochu', 'GET|POST'); // 充值记录导出

Route::rule('infinite_list', 'Finance/infinite_list', 'GET|POST'); //  盲盒统计
Route::rule('infinite_list_daochu', 'Finance/infinite_list_daochu', 'GET|POST'); //盲盒统计导出

Route::rule('draw_list', 'Finance/draw_list', 'GET|POST');
//提现管理
Route::rule('withdraw', 'Withdraw/index','GET|POST');
Route::rule('withdrawpass', 'Withdraw/pass','GET|POST');
#============================
#Rank.php排行榜管理
#============================
Route::rule('week', 'Rank/week', 'GET|POST');
Route::rule('week_add', 'Rank/week_add', 'GET|POST');
Route::rule('week_edit', 'Rank/week_edit', 'GET|POST');
Route::rule('week_del', 'Rank/week_del', 'GET|POST');
Route::rule('week_log', 'Rank/week_log', 'GET|POST');
Route::rule('week_log_reward', 'Rank/week_log_reward', 'GET|POST');
Route::rule('month', 'Rank/month', 'GET|POST');
Route::rule('month_add', 'Rank/month_add', 'GET|POST');
Route::rule('month_edit', 'Rank/month_edit', 'GET|POST');
Route::rule('month_del', 'Rank/month_del', 'GET|POST');
Route::rule('month_log', 'Rank/month_log', 'GET|POST');
Route::rule('month_log_reward', 'Rank/month_log_reward', 'GET|POST');

//优惠券管理
Route::rule('coupon', 'Coupon/index','GET|POST');
Route::rule('coupon_add', 'Coupon/add','GET|POST');
Route::rule('coupon_edit', 'Coupon/edit','GET|POST');
Route::rule('Coupon_cao','Coupon/cao','GET|POST');

//兑换码管理
Route::rule('convert_code', 'ConvertCode/index','GET|POST');
Route::rule('convert_code_add', 'ConvertCode/add','GET|POST');
Route::rule('convert_code_edit', 'ConvertCode/edit','GET|POST');
Route::rule('convert_code_cao','ConvertCode/cao','GET|POST');
Route::rule('convert_del','ConvertCode/convert_del','GET|POST');
Route::rule('convert_code_receive','ConvertCode/convert_code_receive','GET|POST');


//兑换码商品
Route::rule('convert_code_goodslist', 'ConvertCode/goodslist', 'GET|POST');
Route::rule('convert_code_goodslist_add', 'ConvertCode/goodslist_add', 'GET|POST');
Route::rule('convert_code_goodslist_edit', 'ConvertCode/goodslist_edit', 'GET|POST');
Route::rule('convert_code_goodslist_del', 'ConvertCode/goodslist_del', 'GET|POST');


//道具卡管理
Route::rule('item_card', 'ItemCard/index','GET|POST');
Route::rule('item_card_add', 'ItemCard/add','GET|POST');
Route::rule('item_card_edit', 'ItemCard/edit','GET|POST');
Route::rule('item_card_cao','ItemCard/cao','GET|POST');

//任务管理
Route::rule('task_list', 'TaskList/index','GET|POST');
Route::rule('task_list_add', 'TaskList/add','GET|POST');
Route::rule('task_list_edit', 'TaskList/edit','GET|POST');
Route::rule('task_list_cao','TaskList/cao','GET|POST');

//权益中心
Route::rule('qy_level_list', 'QyLevel/index','GET|POST');
Route::rule('qy_level_add', 'QyLevel/add','GET|POST');
Route::rule('qy_level_edit', 'QyLevel/edit','GET|POST');
Route::rule('qy_level_cao','QyLevel/cao','GET|POST');
Route::rule('qy_level_jiang_list','QyLevel/qy_level_jiang_list','GET|POST');
Route::rule('qy_level_jiang_add','QyLevel/qy_level_jiang_add','GET|POST');
Route::rule('qy_level_jiang_edit','QyLevel/qy_level_jiang_edit','GET|POST');
Route::rule('qy_level_jiang_cao','QyLevel/qy_level_jiang_cao','GET|POST');

//领取列表
Route::rule('coupon_receive', 'CouponReceive/index','GET|POST');
#============================
#Cardextractor.php抽卡机管理
#============================
Route::rule('category', 'Cardextractor/category', 'GET|POST');
Route::rule('category_add', 'Cardextractor/category_add', 'GET|POST');
Route::rule('category_edit', 'Cardextractor/category_edit', 'GET|POST');
Route::rule('category_del', 'Cardextractor/category_del', 'GET|POST');
Route::rule('card_goods', 'Cardextractor/card_goods', 'GET|POST');
//Route::rule('card_goods_add', 'Cardextractor/card_goods_add', 'GET|POST');
//Route::rule('card_goods_edit', 'Cardextractor/card_goods_edit', 'GET|POST');
Route::rule('card_goods_edit_number', 'Cardextractor/card_goods_edit_number', 'GET|POST');
//Route::rule('card_goods_del', 'Cardextractor/card_goods_del', 'GET|POST');
Route::rule('card_shang', 'Cardextractor/card_shang', 'GET|POST');
Route::rule('card_shang_add', 'Cardextractor/card_shang_add', 'GET|POST');
Route::rule('card_shang_edit', 'Cardextractor/card_shang_edit', 'GET|POST');
Route::rule('card_shang_del', 'Cardextractor/card_shang_del', 'GET|POST');
Route::rule('card_goodslist', 'Cardextractor/card_goodslist', 'GET|POST');
Route::rule('card_goodslist_add', 'Cardextractor/card_goodslist_add', 'GET|POST');
Route::rule('card_goodslist_edit', 'Cardextractor/card_goodslist_edit', 'GET|POST');
Route::rule('card_goodslist_del', 'Cardextractor/card_goodslist_del', 'GET|POST');
//Route::rule('card_set', 'Cardextractor/card_set', 'GET|POST');
#============================
#CardGoods.php抽卡机管理
#============================
Route::rule('card_goods_category', 'CardGoods/category', 'GET|POST');
Route::rule('card_category_add', 'CardGoods/card_category_add', 'GET|POST');
Route::rule('card_category_edit', 'CardGoods/card_category_edit', 'GET|POST');
Route::rule('card_category_del', 'CardGoods/card_category_del', 'GET|POST');
Route::rule('card_good', 'CardGoods/card_goods', 'GET|POST');
Route::rule('card_goods_add', 'CardGoods/card_goods_add', 'GET|POST');
Route::rule('card_goods_edit', 'CardGoods/card_goods_edit', 'GET|POST');
Route::rule('card_goods_del', 'CardGoods/card_goods_del', 'GET|POST');
Route::rule('shang_goods', 'CardGoods/shang_goods', 'GET|POST');
Route::rule('shang_goods_add', 'CardGoods/shang_goods_add', 'GET|POST');
Route::rule('shang_goods_edit', 'CardGoods/shang_goods_edit', 'GET|POST');
Route::rule('shang_goods_del', 'CardGoods/shang_goods_del', 'GET|POST');
Route::rule('card_set', 'CardGoods/card_set', 'GET|POST');
#============================
#Goods.php盒子管理
#============================
Route::rule('goods', 'Goods/goods', 'GET|POST');
Route::rule('goods_add', 'Goods/goods_add', 'GET|POST');
Route::rule('goods_edit', 'Goods/goods_edit', 'GET|POST');
Route::rule('goods_del', 'Goods/goods_del', 'GET|POST');
Route::rule('goodslist', 'Goods/goodslist', 'GET|POST');
Route::rule('goodslist_add', 'Goods/goodslist_add', 'GET|POST');
Route::rule('goodslist_edit', 'Goods/goodslist_edit', 'GET|POST');
Route::rule('goodslist_del', 'Goods/goodslist_del', 'GET|POST');
Route::rule('give', 'Goods/give', 'GET|POST');
Route::rule('give_add', 'Goods/give_add', 'GET|POST');
Route::rule('give_edit', 'Goods/give_edit', 'GET|POST');
Route::rule('give_del', 'Goods/give_del', 'GET|POST');
Route::rule('give_time', 'Goods/give_time', 'GET|POST');
Route::rule('yushou_rili', 'Goods/yushou_rili', 'GET|POST');
Route::rule('yushou_rili_add', 'Goods/yushou_rili_add', 'GET|POST');
Route::rule('yushou_rili_edit', 'Goods/yushou_rili_edit', 'GET|POST');
Route::rule('yushou_rili_del', 'Goods/yushou_rili_del', 'GET|POST');
Route::any('goods_list_gailv', 'Goods/gailv');
Route::any('goods_list_reveal_gailv', 'Goods/reveal_gailv');



Route::rule('draw_raffle', 'Draw/goods', 'GET|POST');
Route::rule('draw_edit', 'Draw/draw_edit', 'GET|POST');
Route::rule('drawlist', 'Draw/drawlist', 'GET|POST');
Route::rule('drawlist_add', 'Draw/drawlist_add', 'GET|POST');
Route::rule('drawlist_edit', 'Draw/drawlist_edit', 'GET|POST');
Route::rule('drawlist_del', 'Draw/drawlist_del', 'GET|POST');
Route::rule('draw_add', 'Draw/draw_add', 'GET|POST');



#============================
#Order.php订单管理
#============================
Route::rule('kadan_order', 'Order/kadan_order');
Route::rule('buy_order', 'Order/buy_order');
Route::rule('buy_order_detail', 'Order/buy_order_detail');
Route::rule('recovery_order', 'Order/recovery_order');
Route::rule('recovery_order_detail', 'Order/recovery_order_detail');
Route::rule('send_order', 'Order/send_order');
Route::rule('send_order_detail', 'Order/send_order_detail');
Route::rule('send_order_deliver', 'Order/send_order_deliver');
Route::rule('cancel_order', 'Order/cancel_order');
Route::rule('buy_order_daochu', 'Order/buy_order_daochu');
Route::rule('recovery_order_daochu', 'Order/recovery_order_daochu');
Route::rule('send_order_daochu', 'Order/send_order_daochu');


#============================
#Danye.php规则管理
#============================
Route::rule('danye', 'Danye/index', 'GET|POST');
Route::rule('danye_edit', 'Danye/edit', 'GET|POST');
Route::rule('gonggao', 'Danye/gonggao', 'GET|POST');

#============================
#Advert.php轮播图
#============================
Route::get('advert', 'Advert/index');
Route::rule('advert_add', 'Advert/add', 'GET|POST');
Route::rule('advert_edit', 'Advert/edit', 'GET|POST');
Route::rule('advert_del', 'Advert/del', 'GET|POST');


#============================
#Admin.php管理员设置
#============================
Route::rule('admin', 'Admins/admin', 'GET|POST');
Route::rule('admin_add', 'Admins/admin_add', 'GET|POST');
Route::rule('admin_edit', 'Admins/admin_edit', 'GET|POST');
Route::rule('admin_disable', 'Admins/admin_disable', 'GET|POST');
Route::rule('admin_delete', 'Admins/admin_delete', 'GET|POST');
Route::rule('admin_quanxian', 'Admins/admin_quanxian');
Route::rule('admin_quanxian_add', 'Admins/admin_quanxian_add', 'GET|POST');
Route::rule('admin_quanxian_edit', 'Admins/admin_quanxian_edit', 'GET|POST');
Route::rule('admin_quanxian_del', 'Admins/admin_quanxian_del', 'GET|POST');
Route::rule('admin_login_log', 'Admins/admin_login_log', 'GET|POST');
Route::rule('admin_operationlog', 'Admins/admin_operationlog', 'GET|POST');
Route::rule('admin_goods_log', 'Admins/admin_goods_log', 'GET|POST');

#============================
#Config.网站配置
#============================
Route::get('base', 'Config/base');
Route::get('sign', 'Config/sign');//签到设置
Route::get('weixinpay', 'Config/weixinpay');
Route::get('zfbpay', 'Config/zfbpay');
Route::get('uploadsFile', 'Config/uploads'); //上传设置
Route::post('update', 'Config/update');


#============================
#Seckill.php秒杀商城
#============================
Route::rule('seckill', 'Seckill/seckill','GET|POST');
Route::rule('seckill_add', 'Seckill/seckill_add','GET|POST');
Route::rule('seckill_edit/id/:id', 'Seckill/seckill_edit','GET|POST');
Route::rule('seckill_edit', 'Seckill/seckill_edit','GET|POST');
Route::rule('seckill_status', 'Seckill/seckill_status','GET|POST');
Route::rule('seckill_product', 'Seckill/seckill_product','GET|POST');
Route::rule('seckill_product_add', 'Seckill/seckill_product_add','GET|POST');
Route::rule('seckill_product_edit', 'Seckill/seckill_product_edit','GET|POST');
Route::rule('seckill_product_del', 'Seckill/seckill_product_del','GET|POST');
Route::rule('kk_send_order', 'Seckill/send_order','GET|POST');
Route::rule('producttwocate', 'Seckill/getCate','GET|POST');
Route::rule('kk_send_order_detail', 'Seckill/send_order_detail','GET|POST');
Route::rule('kk_send_order_deliver', 'Seckill/send_order_deliver','GET|POST');
Route::rule('kk_send_order_logistics', 'Seckill/send_order_logistics','GET|POST');
Route::rule('kk_send_order_deliver_goods', 'Seckill/send_order_deliver_goods','GET|POST');

Route::rule('sign_set', 'Seckill/sign_set','GET|POST');
Route::rule('sign_set_edit', 'Seckill/sign_set_edit','GET|POST');
Route::rule('sign_log', 'Seckill/sign_log','GET|POST');
//商城分类
Route::get('productcate', 'ProductCate/index');
Route::rule('productcate_add','ProductCate/add','GET|POST');
Route::rule('productcate_edit','ProductCate/edit','GET|POST');
Route::rule('productcate_del','ProductCate/del','GET|POST');

//爬
Route::get('climb', 'climb/index');
Route::rule('climb_add','climb/add','GET|POST');
Route::rule('climb_edit','climb/edit','GET|POST');
Route::rule('climb_cao','climb/cao','GET|POST');
Route::any('climb_rank', 'climb/climb_rank');


//爬塔奖品
Route::any('climb_prize', 'ClimbList/climb');
Route::any('climb_climb_edit', 'ClimbList/climb_edit');
Route::any('climb_list', 'ClimbList/index');
Route::any('climb_list_add', 'ClimbList/add');
Route::any('climb_list_edit', 'ClimbList/edit');
Route::any('climb_list_cao', 'ClimbList/cao');
Route::any('climb_list_gailv', 'ClimbList/gailv');



// Route::any('climb_rank_list_add', 'ClimbRankList/add');
// Route::any('climb_rank_list_edit', 'ClimbRankList/edit');
// Route::any('climb_rank_list_cao', 'ClimbRankList/cao');



//商城分类
Route::any('productcate', 'ProductCate/index');
Route::any('productcate_add','ProductCate/add','GET|POST');
Route::any('productcate_edit','ProductCate/edit','GET|POST');
Route::any('productcate_del','ProductCate/del','GET|POST');

//商品管理
Route::get('product', 'Product/index');
Route::rule('producttwocate', 'Product/getCate','GET|POST');  //获取二级分类
Route::rule('product_add','Product/add','GET|POST');
Route::rule('product_get_format_attr','Product/get_format_attr','GET|POST');
Route::rule('product_edit','Product/edit','GET|POST');
Route::rule('product_del','Product/del','GET|POST');


//商铺商品订单管理
Route::rule('productorder','ProductOrder/index');
Route::rule('productorderdetail','ProductOrder/detail');	//商品订单详情
Route::rule('productordersend','ProductOrder/send');
Route::rule('productorderchu','ProductOrder/productorderchu');
Route::rule('cancel_product_order','ProductOrder/cancel_product_order');


